<html>
    <head>
        <title>没有权限</title>
        #parse("/common/common.html")
    </head>
    <body>
    没有权限
        <button id="logoutBtn" class="layui-btn">退出</button>
        <script type="text/javascript">
            $("#logoutBtn").click(function () {
                layer.load();
                var postData = {
                };
                var onSuccess = function (data) {
                    layer.closeAll('loading');
                    if (!data.success) {
                        layer.msg(data.error,{icon: 2});
                    } else {
                        layer.msg("退出成功！",{icon: 1},function () {
                            window.location.reload();
                        });
                    }
                };
                AppComm.ajax.execute({
                    'url':"${request.contextPath}/ajax/logout",
                    'data':postData,
                    'success':onSuccess
                });
            })
        </script>
    </body>
</html>